﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using VideoSeller.Business.Data;
using VideoSeller.Business.Data.Enums;

namespace VideoSeller.Web.Models
{
	public class AdminContentViewModel : BaseViewModel
	{
		public ContentPlaceType? ContentPlace { get; set; }

		public List<SelectListItem> Filters { get; set; }

		public List<Content> Items { get; set; }

		public AdminContentViewModel()
		{
			Filters = new List<SelectListItem> {new SelectListItem {Text = "", Value = "", Selected = true}};
			foreach (var name in Enum.GetNames(typeof(ContentPlaceType)))
			{
				Filters.Add(new SelectListItem { Text = name, Value = name, Selected = false });
			}
		}
	}
}